import Layout from '@/layout'

export const routes = [
  {
    path: '/form',
    component: Layout,
    children: [
      {
        path: '/form/body/edit/:id',
        component: () => import('@/customForm/views/form/formEdit'),
        name: 'formBodyEdit',
        hidden: true,
        meta: { title: '编辑表单结构', affix: false }
      },
      {
        path: '/form/phy/query/table/:id',
        component: () => import('@/customForm/views/phyQueryTable/phyQueryTableEdit'),
        name: 'phyQueryTableEdit',
        hidden: true,
        meta: { title: '编辑物理表结构', affix: false }
      },
      {
        path: '/form/phy/query/:id',
        component: () => import('@/customForm/views/phyQuery/phyQueryEdit'),
        name: 'phyQueryEdit',
        hidden: true,
        meta: { title: '编辑物理表查询条件结构', affix: false }
      }
    ]
  },
  {
    path: '/page',
    component: Layout,
    children: [
      {
        path: '/page/body/edit/:id',
        component: () => import('@/customForm/views/customPage/editPageView'),
        name: 'editPageView',
        hidden: true,
        meta: { title: '编辑页面布局', affix: false }
      },
      {
        path: '/page/preview/:id',
        component: () => import('@/customForm/views/customPage/pageDetailed'),
        name: 'pagePreview',
        hidden: true,
        meta: { title: '页面预览', affix: false }
      }
    ]
  },
  {
    path: '/view',
    component: Layout,
    children: [
      {
        path: '/view/edit/:id',
        component: () => import('@/customForm/views/formView/editFormView'),
        name: 'editFormView',
        hidden: true,
        meta: { title: '编辑视图', affix: false }
      }
    ]
  }
]
